<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>RequisiteWorks</title>
<link rel="stylesheet" href="/requisiteworks/styles/normalize.css" />
<link rel="stylesheet" href="/requisiteworks/styles/main.css" />

<script type="text/javascript" src="/requisiteworks/scripts/raze.js" ></script>
<script type="text/javascript" src="/requisiteworks/scripts/jsool-all.js" ></script>

<script type="text/javascript">
	jsool.onReady(function(){
		var user = Raze.queryNode("input[name=j_username]");
		var pass = Raze.queryNode("input[name=j_password]");

		if(user.value){
			pass.focus();
		}else{
			user.focus();
		}
	});
</script>
</head>
<body>
	<center>
		<div class="centralizado">
		<div class="erro">
			Acesso negado
		</div>
		<fieldset style="HEIGHT:50%;WIDTH:50%;">
			<legend>RequisiteWorks</legend>
			<form:form modelAttribute="login" action="/requisiteworks/j_spring_security_check" method="POST">
				<table style="HEIGHT:100%;WIDTH:100%;">
					<tr align="center">
						<td>
							<table>
								<tr>
								 	<td align="right"> Login:</td>
									<td><input name="j_username" type="text"></td>
								</tr>
								<tr>
									<td>&nbsp;</td>
								</tr>
								<tr>
									<td align="right">Senha:</td>
									<td><input name="j_password" type="password"></td>
								</tr>
								<tr>
									<td></td>
									<td>
										<center><input type="submit" value="Logar"/></center>
									</td>
								</tr>
							</table>
						</td>
					</tr>	
				</table>
			</form:form>
		</fieldset></div>
	</center>
</body>
</html>